﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _02PrintingNumbersDby3Dby7
{
    class _02PrintingNumbersDby3Dby7
    {
        static void Main(string[] args)
        {
            Console.Write("Enter value for n = ");
            string strNumber = Console.ReadLine();
            int number = int.Parse(strNumber);
            int n = 0;
            while (n <= number)
            {
                n++;
                if (n % (3*7) == 0)
                {
                    continue;
                }
                Console.Write("{0}, ", n);
            }
        }
    }
}
